import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-11-17
 * Time: 20:33
 */
public class test_1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            int[] hash = new int[128];
            char[] chars = in.next().toCharArray();
            for (char c : chars) {
                hash[c]++;
            }
            int min = 101;
            int max = 0;
            for (int j : hash) {
                if (j != 0) {
                    min = Math.min(min, j);
                    max = Math.max(max, j);
                }
            }
            int diff = max - min;
            if (isPrime(diff)) {
                System.out.println("Lucky Word");
                System.out.println(diff);
            } else {
                System.out.println("No Answer");
                System.out.println(0);
            }
        }
    }

    public static boolean isPrime(int n) {
        if (n < 2) return false;
        for (int i = 2; i <= Math.sqrt(n); i++) {
            if (n % i == 0) return false;
        }
        return true;
    }

}
